﻿using System;

namespace Attributes
{
    [AttributeUsage(AttributeTargets.Method)]
    public class VersionAttribute : Attribute
    {
        private string version;
        private string comment;

        public VersionAttribute(string version) : this(version, string.Empty)
        {
        }

        public VersionAttribute(string version, string comment)
        {
            this.Version = version;
            this.Comment = comment;
        }

        public string Version
        {
            get
            {
                return version;
            }
            private set
            {
                version = value;
            }
        }

        public string Comment
        {
            get
            {
                return comment;
            }
            private set
            {
                comment = value;
            }
        }
    }
}
